Uploaded image for project: 'Maven Compiler Plugin'
  1. Maven Compiler Plugin
  2. MCOMPILER-333

Incremental compilation causes "mvn clean compile compile" to fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.7.0
    • 3.12.0
    • None

    Description

      With <useIncrementalCompilation>true</useIncrementalCompilation>, my build fails if I do "mvn clean compile compile". From theĀ comment in MCOMPILER-205, I understand that incremental compilation deletes the "classes" directory. But it seems that it doesn't delete the "generated-sources" directory.

      When I do "mvn clean compile" and "mvn compile", the second build fails. However, if I delete the "generated-sources" directory between the 2 builds, they both succeed.

      So I guess the bug here is that incremental compilation doesn't delete the "generated-sources" directory.

      Attachments

        Issue Links

          Activity

            People

              olamy Olivier Lamy
              anthonyv.be Anthony Vanelverdinghe
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: